package com.ticket.service.impl;

import com.ticket.dao.UserDao;
import com.ticket.entity.User;
import com.ticket.service.UserService;
import com.ticket.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

/**
 * @author 全谢民
 * @version 8.0
 * @description: TODO   用户
 * @date 2023/10/16 10:16
 */
public class UserServiceImpl implements UserService {

    static UserDao ud;
    static {
        SqlSession sqlSession = MybatisUtil.getSqlSession();
        ud = sqlSession.getMapper(UserDao.class);
    }

    /*
     * @author 全谢民
     * @description TODO 用户查询个人信息
     * @date 2023/10/16 10:19
     */
    @Override
    public User selUser(User user) {
        return ud.selUser(user);
    }

    /*
     * @author 全谢民
     * @description TODO 用户修改个人信息
     * @date 2023/10/16 10:19
     */
    @Override
    public int updUser(User user) {
        return ud.updUser(user);
    }
}
